home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1760 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: hp70.rbg.informatik.th-darmstadt.de!meixner
  2. From: meixner@rbg.informatik.th-darmstadt.de (Matthias Meixner)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: resourcetracking/Kill on A4000
  5. Date: 23 Jan 1996 10:21:02 GMT
  6. Organization: Technische Hochschule Darmstadt
  7. Message-ID: <4e2cqe$1i2j@rs18.hrz.th-darmstadt.de>
  8. References: <4e0554$hro@merkurius.lu.se>
  9. NNTP-Posting-Host: hp70.rbg.informatik.th-darmstadt.de
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. ali (Anders Lindgren) (dat94ali) wrote:
  13. : After some time of drustration with my old
  14. : OS1.3 A500/2x512k/2floppies/no HD, I upgraded a
  15. : fortnight ago by buying myself a nice little
  16. : A4000/040/6Mb/460Mb HD/OS3.0 8-)  Anyway, I thought
  17. : that now that I've got enough RAM to actually run
  18. : several apps simultaneously, it would be quite nice
  19. : to have a commodity that keeps track of what memory
  20. : goes where and that would allow me to kill of crashed
  21. : tasks (if they don't bring the whole OS with them in
  22. : the fall). I.e. resourcetracking. Patching/Wrapping 
  23. : the OS-functions AllocMem and FreeMem would seem enough 
  24. : for just taking back memory from crashed programs, but to
  25. : be able to kill them, resources would have to be returned
  26. : too, so patching OpenLibrary, OpenDevice and such would
  27. : also be needed, right? Well, to get to the point;
  28. :  
  29.  
  30. Resource-tracking is not possible with the current version
  31. of the OS. The problem is resource trading:
  32.  
  33. task "a" allocatest memory and sends it to task "b"
  34. task "b" can now do with it what it wants.
  35. If you had resourcetracking, the memory would be 
  36. freed if task "a" terminates and whereas task "b"
  37. would still use it, which is a good way to bring a
  38. system down.
  39.  
  40. With the current version of the OS, the OS cannot
  41. know, who actually holds a resource, and therefore
  42. there cannot be resource-tracking.
  43.  
  44. --
  45.  
  46. - Matthias Meixner
  47.  
  48. -----------------------------------------------------------------------------
  49. EMail: meixner@rbg.informatik.th-darmstadt.de  
  50. WWW:   http://www.student.informatik.th-darmstadt.de/~meixner/
  51.  
  52.          Uebrigens: Nachts gehen Sonnenuhren nach dem Mond ...
  53.  
  54.